package cn.ly.service;

import cn.ly.dao.UserDao;
import cn.ly.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;

    @Override
    public User checkUser(String username,String password) {
        User user = userDao.findUserByUsernameAndPassword(username,password);
        return user;
    }
}
